package com.ss.android.article.browser.view.user;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

import com.ss.android.common.app.AbsPagerAdapter;

final class UserActionHistoryPagerAdapter extends AbsPagerAdapter {
    private final UserActionHistoryActivity a;

    UserActionHistoryPagerAdapter(UserActionHistoryActivity arg1, FragmentManager arg2) {
        super(arg2);
        this.a = arg1;
    }

    public final int getCount() {
        return UserActionHistoryActivity.b(this.a).length;
    }

    public final CharSequence getPageTitle(int arg3) {
        String v0;
        switch(arg3) {
            case 0: {
                v0 = UserActionHistoryActivity.d(this.a) > 0 ? this.a.getString(com.ss.android.article.browser.R.string.j_) : this.a.getString(com.ss.android.article.browser.R.string.e9);
                break;
            }
            default: {
                v0 = UserActionHistoryActivity.d(this.a) > 0 ? this.a.getString(com.ss.android.article.browser.R.string.iy) : this.a.getString(com.ss.android.article.browser.R.string.bz);
                break;
            }
        }

        return ((CharSequence)v0);
    }

    public final Fragment createFragment(int position) {
        return UserActionHistoryActivity.b(this.a)[position];
    }
}

